package com.furtherstar.auth.service;

import com.furtherstar.auth.controller.dto.UserCreator;
import com.furtherstar.auth.controller.dto.UserQuery;
import com.furtherstar.auth.dao.model.AuthUser;
import com.furtherstar.auth.dao.model.UserSecret;
import com.github.pagehelper.PageSerializable;
import com.yummy.web.security.bean.SimpleUser;

public interface AuthUserService {

	AuthUser getByUsername(String username);

	Long add(UserCreator userCreator);

	Long update(AuthUser authUser);

	Long enable(Long userid);

	Long disable(Long userid);

	Boolean delete(Long id);

	PageSerializable<AuthUser> pageQuery(UserQuery userQuery);

	PageSerializable<SimpleUser> optionsQuery(UserQuery userQuery);

	Boolean changePassword(UserSecret userSecret);

}
